// 配置全局信息
:root {
  // 基础样式
  --primary-color: #007AC5;
  --background-color: white;
  --navigation-color: white;
  --content-color: #eee;
  --font-family: "微软雅黑", TeX Gyre Adventor-Bold, TeX Gyre Adventor, monospace;
  --font-color: rgba(0, 0, 0, .65);
  --font-size: 14px;

  // margin、padding、border
  --border-color: #eee;
  --border-radius: 5px 5px 5px 5px;
  --padding-width: 15px;
  --margin-width: 15px;
  --span-width: 10px;
  --item-height: 28px;

  // input和select
  --placeholer-color: #eee;
  --input-background-color: #eee;
  --select-background-color: #eee;
  --input-font-color: rgba(0, 0, 0, .65);
  --select-font-color: rgba(0, 0, 0, .65);
  --input-height: 28px;

  // radio
  --list-item-content-color: white;

  // dialog
  --dialog-background-color: white;
  --dialog-submit-color: #007AC5;
  --dialog-cancel-color: #eee;

  // toast
  --toast-background-color: #007AC5;
  --toast-font-color: white;

  // popup
  --popup-background-color: white;
  --popup-header-background-color: white;
  --popup-article-background-color: white;
  --popup-closer-color: black;
  --popup-header-font-size: 16px;

  // table
  --table-background-color: white;
  --table-th-background-color: white;
  --table-tr-background-color: white;
  --table-tr-hover-color: #eee;

  // pannel
  --pannel-background-color: white;
  --pannel-content-background-color: white;
  --pannel-item-background-color: white;
  --pannel-item-hover-color: #ddd;
  --pannel-header-font-size: 16px;

  // ol
  --ol-viewport-background-color: rgba(40, 40, 40, 1);
  --ol-popup-background-color: white;
  --ol-popup-chart-background-color: white;

  // chart

  // f7基础样式
  --f7-theme-color: var(--primary-color);
  --f7-menu-dropdown-pressed-bg-color: var(--content-color);
  --f7-input-height: var(--input-height);

  // f7 => toast
  --f7-toast-text-color: white;
  --f7-toast-font-size: 14px;
  --f7-toast-icon-size: 48px;
  --f7-toast-max-width: 568px;

  // f7 => treeview
  --f7-treeview-toggle-color: rgba(255, 255, 255, 0.5);
  --f7-treeview-toggle-hover-bg-color: rgba(255, 255, 255, 0.03);
  --f7-treeview-toggle-pressed-bg-color: rgba(255, 255, 255, 0.1);
  --f7-treeview-icon-color: rgba(255, 149, 0, 1);
  --f7-treeview-selectable-hover-bg-color: rgba(255, 255, 255, 0.03);
  --f7-treeview-link-hover-bg-color: rgba(255, 255, 255, 0.03);
  --f7-treeview-link-pressed-bg-color: rgba(255, 255, 255, 0.11);
  --f7-treeview-label-font-size: 12px;

  // f7 => table
  --table-header-font-size: 14px;
  --table-row-font-size: 12px;
  --f7-table-head-font-size: 14px;
  --f7-table-body-font-size: 12px;
  --f7-table-footer-font-size: 12px;
  --f7-table-input-height: 24px;
  --f7-table-input-font-size: 12px;
  --f7-table-collapsible-cell-padding: 16px;
  --f7-table-link-icon-only-icon-size: 20px;
  --f7-table-head-bg-color: transparent;
  --f7-table-card-header-bg-color: transparent;
  --f7-table-card-header-height: 64px;
  --f7-table-cell-padding-vertical: 0px;
  --f7-table-sortable-icon-color: #000;
}

@import "style";

.color-toggle {
  background: #aaa;
}

#mapfile-search {
  line-height: 48px;
  font-size: 30px;
  border-radius: 3px;
  color: white;
  background: var(--primary-color);
  cursor: pointer;
}

header {
  width: 100vw;
  height: 40px;
  background-color: var(--navigation-color);

  div {
    .function {
      height: 40px;
      padding-left: var(--padding-width);
      display: flex;
      justify-content: start;
      align-items: center;
    }
  }
}

.ol-popup {
  position: absolute;
  color: var(--font-color);
  background-color: var(--ol-popup-background-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  padding: var(--padding-width);
  border-radius: var(--border-radius);
  bottom: 12px;
  left: -50px;
  width: 580px;
  z-index: 5;

  .ol-vehicle-content {
    overflow-y: scroll;
    div {
      display: flex;
      justify-content: left;
      align-items: center;
      height: 40px;
      span {
        margin: 5px;
      }
      button {
        margin: 0 5px;
        height: 25px !important;
      }
      .button-fill {
        width: 50px !important;
      }
      .button-outline {
        width: 80px;
      }
      .item-label {
        margin: 0 5px;
        input {
          width: 105px;
          border: 1px solid var(--font-color);
          border-radius: var(--border-radius);
        }
      }
    }

    .table {
      width: 530px;
      margin:5px;
      text-align: left;
      border-collapse: collapse;
      border: 1px solid var(--font-color);
      border-radius: var(--border-radius);
      td {
        padding: 5px;
        height: 20px;
      }
    }
  }

  .ol-person-content {
    img {
      width: 140px;
      height: 210px;
      float: left;
    }
    div {
      width: 230px;
      height: 210px;
      float: left;
      margin-left: var(--margin-width);
      span {
        height: 30px;
        font-size: 14px;
        font-weight: bold;
        line-height: 30px;
      }
    }
  }

  &:after {
    top: 100%;
    border: solid transparent 10px;
    border-top-color: var(--ol-popup-background-color);
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    left: 48px;
    margin-left: -10px;
  }

  &:before {
    top: 100%;
    border: solid transparent 11px;
    border-top-color: var(--ol-popup-background-color);
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    left: 48px;
    margin-left: -11px;
  }

  .ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;

    &:after {
      content: "✖";
    }
  }
}
